// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'RealInventorId',
        footer: "Foots",
        cnName: '实时库存',
        name: 'realtimeinventory',
        url: "/realtimeinventory/",
        sortName: "RealInventorId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductId":"","ProductName":"","Specifications":"","InventoryNumber":"","WarehouseBatchNo":"","WarehouseId":"","StoragebayId":"","LocationId":"","InboundDate":""};
    const editFormOptions = [[{"title":"库存编号","field":"ProductId","type":"text"},
                               {"title":"库存名称","field":"ProductName","type":"text"},
                               {"title":"类型","field":"Specifications","type":"text"}],
                              [{"title":"库存数量","field":"InventoryNumber","type":"text"},
                               {"title":"入库编号","field":"WarehouseBatchNo","type":"text"}],
                              [{"dataKey":"仓库建模","data":[],"title":"仓库","field":"WarehouseId","type":"select"},
                               {"dataKey":"库区建模","data":[],"title":"库区","field":"StoragebayId","type":"select"},
                               {"dataKey":"库位建模","data":[],"title":"库位","field":"LocationId","type":"select"}],
                              [{"title":"日期","field":"InboundDate","type":"datetime"}]];
    const searchFormFields = {"ProductId":"","ProductName":"","Specifications":"","InventoryNumber":"","WarehouseBatchNo":"","WarehouseId":"","StoragebayId":"","LocationId":"","InboundDate":""};
    const searchFormOptions = [[{"title":"库存编号","field":"ProductId","type":"like"},{"title":"库存名称","field":"ProductName","type":"like"},{"title":"类型","field":"Specifications","type":"="}],[{"title":"库存数量","field":"InventoryNumber","type":"="},{"title":"入库编号","field":"WarehouseBatchNo","type":"like"}],[{"dataKey":"仓库建模","data":[],"title":"仓库","field":"WarehouseId","type":"="},{"dataKey":"库区建模","data":[],"title":"库区","field":"StoragebayId","type":"="}],[{"dataKey":"库位建模","data":[],"title":"库位","field":"LocationId","type":"="},{"title":"日期","field":"InboundDate","type":"datetime"}]];
    const columns = [{field:'RealInventorId',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductId',title:'库存编号',type:'string',width:110,align:'left',sort:true},
                       {field:'ProductName',title:'库存名称',type:'string',width:110,align:'left'},
                       {field:'Specifications',title:'类型',type:'string',width:110,align:'left'},
                       {field:'InventoryNumber',title:'库存数量',type:'int',width:110,align:'left'},
                       {field:'WarehouseBatchNo',title:'入库编号',type:'string',width:110,align:'left'},
                       {field:'WarehouseId',title:'仓库',type:'int',bind:{ key:'仓库建模',data:[]},width:110,align:'left'},
                       {field:'StoragebayId',title:'库区',type:'int',bind:{ key:'库区建模',data:[]},width:110,align:'left'},
                       {field:'LocationId',title:'库位',type:'int',bind:{ key:'库位建模',data:[]},width:110,align:'left'},
                       {field:'InboundDate',title:'日期',type:'datetime',width:150,align:'left',sort:true}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}